home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / SRC-GLU / Makefile.DJ < prev    next >
Encoding:
Makefile  |  1997-05-21  |  1.6 KB  |  74 lines

  1. # Makefile for GLU for DOS using DJGPP
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.3
  5. # Copyright (C) 1995-1997  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. ##### MACROS #####
  23.  
  24. VPATH = RCS
  25.  
  26. INCDIR = ../include
  27. LIBDIR = ..\lib
  28.  
  29. SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \
  30.     project.c quadric.c tess.c tesselat.c polytest.c
  31.  
  32. OBJECTS = $(SOURCES:.c=.o)
  33.  
  34.  
  35.  
  36. ##### RULES #####
  37.  
  38. .c.o:
  39.     gcc -c -m486 -O3 -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
  40.  
  41.  
  42.  
  43. ##### TARGETS #####
  44.  
  45. GLU_LIB = dosglub.a
  46.  
  47. default: $(LIBDIR)/$(GLU_LIB)
  48.  
  49. clean:
  50.     -del *.o *~
  51.  
  52. MAKELIB = AR ruv
  53.  
  54. targets: $(GLU_LIB)
  55.  
  56. # Make the library:
  57. $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
  58.     $(MAKELIB) $(GLU_LIB) $(OBJECTS)
  59.     copy $(GLU_LIB) $(LIBDIR)\$(GLU_LIB)
  60.  
  61. #include ../Make-config
  62.  
  63. include depend
  64.  
  65.  
  66.  
  67. #
  68. # Run 'make depend' to update the dependencies if you change what's included
  69. # by any source file.
  70. #
  71. dep: $(SOURCES)
  72.     makedepend -fdepend -Y -I../include $(SOURCES)
  73.  
  74.